package com.qianyu.project.web.controller.lyz;

import com.qianyu.project.service.IMaterialUseDetailService;
import com.qianyu.project.service.IMaterialUsePlanService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lyz
 * @date create in 2021/2/22 8:26
 */
@RestController
@RequestMapping("/MaterialUseDetail")
public class MaterialUsePlanDetailController {
    @Autowired
    private IMaterialUseDetailService service;

    @GetMapping("/{useid}")
    public Result getDetailsByUseid(@PathVariable String useid){
        return ResultTool.success(service.getDetailsByUseid(useid));
    }
}
